GetHost(char* src, char* web, char* file, int* port)
{// addr = 0x0804D45F
    char* pA;
    char* pB;
    intOrPtr _v12;
    char* _v16;
    _unknown_ _v36;
    _unknown_ _v40;
    _unknown_ r6;
    _unknown_ _t59;
    _unknown_ _t61;
    _unknown_ _t63;
    _unknown_ _t69;
    _unknown_ _t71;
    intOrPtr _t73;
    _unknown_ _t75;
    _unknown_ _t78;
    _unknown_ _t80;
    char* _t83;
    int _t86;
    _unknown_ _t90;
    _unknown_ _t92;
    _unknown_ _t96;
    _unknown_ _t98;
    _unknown_ _t102;
    _unknown_ _t106;
    _unknown_ _t110;
    _unknown_ _t112;
    _unknown_ _t119;

    L0806F850(_t119, __edi, __esi, web, 0, 4);
    L0806F850(_t119, __edi, __esi, file, 0, 4);
     *port = 0;
    if(( *src & 255) == 0) {
        return ;
    }
    _v16 = src;
    _t69 = L0806E820(_v16, "http://", 7);
    if(_t69 != 0) {
        _t71 = L0806E820(_v16, "https://", 8);
        __eflags = _t71;
        if(_t71 == 0) {
            goto L4;
        } else {
            goto L5;
        }
        goto L5;
    }
    _v16 =  &(src[7]);
L5:
    _t73 = L0806E360(__esp, _v16, 47);
    _v12 = _t73;
    _t130 = _v12;
    if(_v12 == 0) {
        _t75 = L0806E770(__esp, __eflags, _v16);
        L0806F9E0(__edi, __esi, web, _v16, _t75);
        goto L10;
    }
    _t96 = L0806E770(__esp, _t130, _v16);
     *__esp = _v12;
    _t98 = L0806E770(__esp, _t130);
    L0806F9E0(__edi, __esi, web, _v16, _t96 - _t98);
    _t131 = _v12 + 1;
    if(_v12 + 1 == 0) {
        goto L9;
    } else {
        _t106 = L0806E770(__esp, _t131, _v12);
        L0806F9E0(__edi, __esi, file, _v12 + 1, _t106 - 1);
         *__esp = _v12;
        _t112 = L0806E770(__esp, _t131);
         *(_t112 - 1 + file) = 0;
        goto L10;
    }
L10:
    _t132 = _v12;
    if(_v12 == 0) {
        _t80 = L0806E770(__esp, __eflags, _v16);
         *(_t80 + web) = 0;
    } else {
        _t90 = L0806E770(__esp, _t132, _v16);
         *__esp = _v12;
        _t92 = L0806E770(__esp, _t132);
         *(_t90 - _t92 + web) = 0;
    }
    _t83 = L0806E360(__esp, web, 58);
    _v16 = _t83;
    if(_v16 == 0) {
         *port = 80;
        return;
    }
    _t86 =  &(_v16[1]);
    L0805D6A0(_t86);
     *port = _t86;
     *_v16 = 0;
    return;
L9:
    goto L10;
L4:
    _v16 =  &(src[8]);
    goto L5;
}